package com.aboo.trade.facade;

import com.aboo.trade.domain.PlatformPO;
import com.aboo.trade.service.PlatformService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class PlatformFacade {

    @Resource
    private PlatformService platformService;

    public int savePlatform(PlatformPO platform) {
        if (platform == null) {
            return 0;
        }

        return platformService.savePlatform(platform);
    }

}
